﻿using AutoMapper;
using Traceability.Domain;
using Traceability.Domain.FarmingMsgs;
using Traceability.Domain.Goodss;
using Traceability.Domain.Machinings;
using Traceability.Domain.Slaughters;
using Traceability.Services.GoodServices;

namespace Traceability.Webapi
{
    /// <summary>
    /// 映射 profile
    /// </summary>
    public class RabbitTraceabilityMapper : Profile
    {/// <summary>
     /// 构造函数
     /// </summary>
        public RabbitTraceabilityMapper()
        {
            CreateMap<ProductInsertDto, Product>().ReverseMap();
            CreateMap<ProductUpdateDto, Product>().ReverseMap();
            CreateMap<CultivationInsertDto, Cultivation>().ReverseMap();
            CreateMap<ImmunityInsertDto, Immunity>().ReverseMap();
            CreateMap<EnterpriseInsertDto, Enterprise>().ReverseMap();
            CreateMap<SlaughterInsertDto, Slaughter>().ReverseMap();
            CreateMap<MachiningEnterpriseInsertDto, MachiningEnterprise>().ReverseMap();
        }
    }
}
